package com.rave.yunwang.bean;

import java.io.Serializable;

public class BaseBean<T> extends Entity implements Serializable {
    private static final int SUCCESS_CODE = 0;

    private T result;
    private int code;
    private String message;

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return this.code == SUCCESS_CODE;
    }
}